package com.nuanshui.heatedloan.dao.cms.security;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.nuanshui.heatedloan.entity.cms.security.UserVO;



public interface UserVODao extends JpaRepository<UserVO, Long>,
		JpaSpecificationExecutor<UserVO> {
	// 根据登录名查找用户
	UserVO findByUsername(String Username);

	// 根据实名查找用户
	UserVO findByRealname(String realname);

	// 根据包含登录名(类似like)查找用户
	Page<UserVO> findByUsernameContaining(String Username, Pageable pageable);
	
	
	
}